package com.atguigu.gulimall.ware.service;

import com.atguigu.feign.to.SkuHasStockTo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author dy
 * @email 1091330089@qq.com
 * @date 2022-08-11 16:51:40
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    //成功采购的采购项存入库中。
    void addSkuStock(Long skuId, Integer skuNum, Long wareId);

    //根据skuID 查出是否还有库存
    List<SkuHasStockTo> hasstock(List<Long> skuIds);
}

